FROM openjdk:8u102-jdk

WORKDIR /home/auto

ADD target/zxw-aj-tools.jar .

ENV REDIS_HOST localhost
ENV REDIS_PORT 6379

EXPOSE 9998

VOLUME ["/home/auto/upload"]
VOLUME ["/home/auto/config"]
VOLUME ["/home/auto/logs"]

ENTRYPOINT ["java", "-jar", "zxw-aj-tools.jar", "--spring.redis.host=${REDIS_HOST}", "--spring.redis.port=${REDIS_PORT}", "--com.zjh.uploadPath=/home/auto/upload/", "--logging.path=/home/auto/logs"]
